#ifndef POPUPLISTVIEW_H
#define POPUPLISTVIEW_H

#include <QListView>

class PopupListView : public QListView
{
    Q_OBJECT
public:
    PopupListView();

    virtual QSize sizeHint() const;

    virtual QSize minimumSizeHint() const;

    virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;

    virtual QModelIndexList selectedIndexes() const;

protected:
    void updateRange();

signals:
    void viewChange(int begin, int end);
};

#endif // POPUPLISTVIEW_H
